import {DashboardIcon} from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/warehouse',
    component: Layout,
    redirect: '/warehouse/warehousing-list',
    name: 'warehouse',
    meta: {
      title: '库存管理',
      icon: 'icon-product-library'
    },
    children: [
      {
        path: 'warehousing-list',
        name: 'WarehousingList',
        component: () => import('@/pages/warehouse/list/index.vue'),
        meta: {title: '仓库管理'},
      },
      {
        path: 'serial-number',
        name: 'WarehouseSerialNumber',
        component: () => import('@/pages/warehouse/serial-number/index.vue'),
        meta: {title: '库产品查询'},
      },
      {
        path: 'order-list',
        name: 'WarehouseOrderList',
        component: () => import('@/pages/warehouse/order-list/index.vue'),
        meta: {title: '订单列表', hide: true},
      },
      {
        path: 'product',
        name: 'WarehouseProduct',
        component: () => import('@/pages/warehouse/product/index.vue'),
        meta: {title: '仓库库存', hide: true},
      },
      {
        path: 'info',
        name: 'WarehouseProductInfo',
        component: () => import('@/pages/warehouse/product/info/index.vue'),
        meta: {title: '产品详情', hide: true},
      },
      //{
      //  path: 'warehousing',
      //  name: 'WarehouseWarehousing',
      //  component: () => import('@/pages/warehouse/warehousing/index.vue'),
      //  meta: {title: '入库', icon: 'icon-warehousing'},
      //},
      //{
      //  path: 'outbound',
      //  name: 'WarehouseOutbound',
      //  component: () => import('@/pages/warehouse/outbound/index.vue'),
      //  meta: {title: '出库', icon: 'icon-outbound'},
      //},
      //{
      //  path: 'allocation',
      //  name: 'WarehouseAllocation',
      //  component: () => import('@/pages/warehouse/allocation/index.vue'),
      //  meta: {title: '调拨', icon: 'icon-outbound'},
      //},
      //{
      //  path: 'stocktaking',
      //  name: 'WarehouseStocktaking',
      //  component: () => import('@/pages/warehouse/stocktaking/index.vue'),
      //  meta: {title: '盘点'},
      //},
      //{
      //  path: 'managers',
      //  name: 'WarehouseManagers',
      //  component: () => import('@/pages/warehouse/managers/index.vue'),
      //  meta: {title: '仓库管理员'},
      //},
      //{
      //  path: 'serial-number',
      //  name: 'WarehouseSerialNumber',
      //  component: () => import('@/pages/warehouse/serial-number/index.vue'),
      //  meta: {title: '库产品查询'},
      //},
    ],
  },
  //{
  //  path: '/serial',
  //  component: Layout,
  //  redirect: '/warehouse/serial-number',
  //  name: 'warehouse',
  //  meta: {
  //    title: '库产品查询',
  //    single: true,
  //    icon: DashboardIcon,
  //  },
  //  children: [
  //    {
  //      path: 'serial-number',
  //      name: 'WarehouseSerialNumber',
  //      component: () => import('@/pages/warehouse/serial-number/index.vue'),
  //      meta: {title: '库产品查询'},
  //    },
  //  ],
  //},
];
